package com.zhongli.devplatform.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongli.devplatform.po.sys.ReadChapterPO;
import com.zhongli.devplatform.query.sys.ReadChapterQuery;
import com.zhongli.devplatform.vo.sys.ReadChapterVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@Mapper
public interface ReadChapterMapper extends BaseMapper<ReadChapterPO> {
    /**
     * 分页 条件查询
     * @author  wy
     * @param page 分页对象
     * @param chapterQuery 查询条件
     * @return 返回当前页数据
     */
    List<ReadChapterVO> loadPageList(Page<ReadChapterVO> page, ReadChapterQuery chapterQuery);

}
